<!DOCTYPE>
<html>
<head>

</head>
<body>
<script type="application/javascript">
    function submitBookValue(value) {
       document.getElementById("score").value = value ;
       document.getElementById("bookValueForm").submit();
    }
</script>
<form id="bookValueForm" action="/books/evaluate">
    <input type="hidden" name="bookid" value="${book.bookId}"/>
    <input type="hidden" id="score" name="score" value="0"/>
    <span> ${book.title} -评价：
        <input type="button" value="★" onclick="submitBookValue(1)"/>
        <input type="button" value="★" onclick="submitBookValue(2)"/>
        <input type="button" value="★" onclick="submitBookValue(3)"/>
        <input type="button" value="★" onclick="submitBookValue(4)"/>
        <input type="button" value="★" onclick="submitBookValue(5)"/>
    </span>
</form>
</body>
</html>
